package com.sc.controller;

import com.sc.bean.ResultBean;
import com.sc.remote.RemoteUserClient;
import com.sc.server.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "用户管理")
public class SysUserController extends BaseController implements RemoteUserClient{
    @Autowired
    SysUserService userService;
    @ApiOperation("根据id获取用户")
    @Override
    public ResultBean getUser(String id) {
        return selectResult(userService.select(id));
    }
}
